﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Model
{
    public class CommonUser
    {
        public virtual int id { get; set; }
        public virtual string username { get; set; }
        public virtual string password { get; set; }

        public virtual int roomId { get; set; } // -1 不在房间
        public virtual int readyState { get; set; } // 0-未准备 1-准备
        public virtual int roomJob { get; set; } // 1-房主 2-房客

        public virtual int avatarIndex { get; set; } // avatarIndex
        public virtual List<Card> handCardList { get; set; } // 手牌列表
        public virtual List<Card> playCardList { get; set; } // 打牌列表
        public CommonUser()
        {
            roomId = -1;
            readyState = 0;
            roomJob = 2;

            handCardList = new List<Card>();
            playCardList = new List<Card>();
        }
    }
}
